home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS in a Box 11
/
AMUG BBS in a Box Volume XI (April 1994) (MacWizards).iso
/
Files
/
MacTechNotes
/
Platforms & Tools
/
Stand-Alone Code.sit
/
LazyPassƒ
/
LazyTest.p
/
LazyTest.p
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
Text File
|
1990-06-20
|
352 b
|
29 lines
|
[
TEXT/MPS
]
PROGRAM TestApp;
USES
Types, Resources, Memory, OSUtils;
VAR
a, c: Real;
h1: Handle;
FUNCTION CallModule (parm: Real; modHandle: Handle) : Real;
INLINE $205F,
$2050,
$4E90;
BEGIN
Write('Circumference:');
ReadLn(c);
h1 := GetResource('CUST',128);
HLock(h1);
a := CallModule(c,h1);
HUnlock(h1);
WriteLn('Area: ',a);
END.